import request from '@/utils/request'

const api = {
  product: 'eplusProductWeb/entitys',
  productAdd:'eplusProductWeb/productRelease',
  productClass:'eplusProductClassifyWeb/getClassifyByPid',
  approvedAre:'dictWeb/dictList',
  enterpriseList:'enterpriseWeb/enterpriseList',
  addClass:"eplusProductClassifyWeb/addClassify"
}

export default api

export function product (parameter) {
  return request({
    url: api.product,
    method: 'get',
    params: parameter
  })
}
//增加产品
export function productAdd (parameter) {
    return request({
      url: api.productAdd,
      method: 'post',
      data: parameter
    })
  }
  //获取产品分类
export function productClass (parameter) {
    return request({
      url: api.productClass,
      method: 'get',
      params: parameter
    })
  }
//产品分类

//获取地区
export function approvedAre (parameter) {
  return request({
    url: api.approvedAre,
    method: 'get',
    params: parameter
  })
}
//获取公司分类
export function enterpriseList (parameter) {
  return request({
    url: api.enterpriseList,
    method: 'get',
    params: parameter
  })
}
//添加分类
export function tianjiaClass (parameter) {
  return request({
    url: api.addClass,
    method: 'post',
    data: parameter
  })
}